<?php 
my_component_load('testing' , false);
my_component_load('paging' , false);   
my_component_load('list_kalender' , false);   
my_component_load('realisasi_wk_karyawan' );
$task = isset($_GET['task']) ? $_GET['task'] : ""; 
$periode_id = isset( $_GET['periode_id'] ) ? $_GET['periode_id']:  0;
$karyawan_id = isset( $_GET['karyawan_id'] ) ? $_GET['karyawan_id']:  0;
$modulname = "Personalia _BN_ Waktu Kerja _BN_ Jadwal Kerja _BN_ Realisasi";
$tanggal = isset($_GET['tanggal']) ? $_GET['tanggal'] : "";  
$field = isset($_GET['field']) ? $_GET['field'] : "";  
$value = isset($_GET['value']) ? $_GET['value'] : "";  

if($task == 'detail_periode'){
	$pagename = $modulname." _BN_ Detail per Periode";
	$content = list_karyawan_by_periode_id($periode_id);
}elseif($task == 'update'){
	update_jadwal( $tanggal , $field , $value, $karyawan_id );
	my_direct($_SERVER['HTTP_REFERER']);
	
}else{
	$pagename = $modulname." _BN_ Detail";
	load_facebox_script();
	$content =  detail_kelompok_shift( $karyawan_id  );
}
generate_my_web($content, $pagename );